<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mytable/jrtable/yg_jsgf_head.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/jrtable/yg_jsgf_head.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'MOBBH',
                footer: "Foots",
                cnName: '技术规范模板表头',
                name: 'jrtable/yg_jsgf_head',
                url: "/yg_jsgf_head/",
                sortName: "MOBBH"
            });
            const editFormFields = ref({"MOBBH":"","SHUOM":"","LEIB":"","BIANZR":""});
            const editFormOptions = ref([[{"title":"模版说明","field":"SHUOM","disabled":true},
                               {"title":"模版编号","required":true,"field":"MOBBH","disabled":true}],
                              [{"title":"类别","field":"LEIB","disabled":true},
                               {"title":"编制人","field":"BIANZR","disabled":true}]]);
            const searchFormFields = ref({"MOBBH":"","SHUOM":"","LEIB":"","BIANZR":""});
            const searchFormOptions = ref([[{"title":"模版编号","field":"MOBBH","type":"like"},{"title":"模版说明","field":"SHUOM","type":"like"}],[{"title":"类别","field":"LEIB"},{"title":"编制人","field":"BIANZR","type":"like"}]]);
            const columns = ref([{field:'MOBBH',title:'模版编号',type:'string',link:true,width:110,readonly:true,require:true,align:'left',sort:true},
                       {field:'SHUOM',title:'模版说明',type:'string',width:110,readonly:true,align:'left'},
                       {field:'LEIB',title:'类别',type:'string',width:110,hidden:true,readonly:true,align:'left'},
                       {field:'BIANZR',title:'编制人',type:'string',width:110,readonly:true,align:'left'}]);
            const detail = ref({
                cnName: "技术规范模板明细",
                table: "yg_jsgf_item",
                columns: [{field:'MOBBH',title:'模版编号',type:'string',width:110,require:true,align:'left',sort:true},
                       {field:'SHUOM',title:'说明',type:'string',width:110,require:true,align:'left'},
                       {field:'LEIB',title:'LEIB',type:'string',width:110,require:true,align:'left'},
                       {field:'TEZHENG',title:'编码',type:'string',width:110,align:'left'},
                       {field:'FENL',title:'FENL',type:'string',width:110,align:'left'},
                       {field:'INITVALUE',title:'初始值',type:'string',width:110,align:'left'}],
                sortName: "模版编号",
                key: "MOBBH"
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
